package GUI.Visualizacion;

import java.awt.*;
import javax.swing.*;
import BL.BLAlmacen;


public class GrillaHorizontal extends JPanel{
    private int dx;
    private BLAlmacen blAlmacen;

    public GrillaHorizontal() {
        dx=0;
        blAlmacen = new BLAlmacen();
    }

    public int getDx() {
        return dx;
    }

    public void setDx(int dx) {
        this.dx = dx;
    }

    public @Override void paintComponent(Graphics g){
        for (Integer i=blAlmacen.getAncho(); i>=1; i--)
            g.drawString(i.toString(), i*Escenario.ANCHO_IMAGEN-32-dx, 10);
    }
}
